﻿

using IotContract.Dtos.Servers.Pushs;
using ProtoBuf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IotContract.Models.Process.F29;
[ProtoContract]
public class F29ProcessCvData: ProcessBaseData
{
    /// <summary>
    /// 入库站台允许取货
    /// </summary>
    [ProtoMember(1)]
    public int AllowEnter { get; set; }
    /// <summary>
    /// 出库站台允许放货
    /// </summary>
    [ProtoMember(2)]
    public int AllowOut { get; set; }

    /// <summary>
    /// 协议类型
    /// </summary>
    [ProtoMember(3)]
    public string ProtobufType { get; set; }
    /// <summary>
    /// 点位站台
    /// </summary>
    [ProtoMember(4)]
    public int TagNum { get; set; }
    /// <summary>
    /// 托盘号
    /// </summary>
    [ProtoMember(5)]
    public string Tray1 { get; set; } = "无托盘";
    /// <summary>
    /// 托盘号
    /// </summary>
    [ProtoMember(6)]
    public string Tray2 { get; set; } = "无托盘";





    /// <summary>
    /// 0:手动   1:自动
    /// </summary>
    [ProtoMember(7)]
    public int Mode { get; set; }







    /// <summary>
    /// 扫码枪读取时间
    /// </summary>
    [ProtoMember(8)]
    public DateTime? BcrReadTime { get; set; }



    /// <summary>
    /// 目的地
    /// </summary>
    [ProtoMember(9)]
    public int Dest { get; set; }
    /// <summary>
    /// 任务号
    /// </summary>
    [ProtoMember(10)]
    public int TaskNumber { get; set; }



    /// <summary>
    /// 扫码枪准备扫码
    /// </summary>
    [ProtoMember(11)]
    public int BcrReady { get; set; }
    /// <summary>
    /// 错误码
    /// </summary>
    [ProtoMember(12)]
    public int Error { get; set; }





    /// <summary>
    /// 设备号
    /// </summary>
    [ProtoMember(13)]
    public string EquipNum { get; set; }
    /// <summary>
    /// 设备id
    /// </summary>
    [ProtoMember(14)]
    public long EquipId { get; set; }
    /// <summary>
    /// 信息
    /// </summary>
    [ProtoMember(15)]
    public string Message { get; set; }




    /// <summary>
    /// 最大的扫码枪
    /// </summary>
    [ProtoMember(16)]
    public int MaxReadBcr { get; set; }

    /// <summary>
    /// 读取到的扫码枪
    /// </summary>
    [ProtoMember(17)]
    public int ReadOkBcr { get; set; }


    /// <summary>
    /// 托盘停留时长（分钟）
    /// </summary>
    [ProtoMember(18)]
    public double TrayOnTime { get; set; }







  
    /// <summary>
    /// 是否存在托盘
    /// </summary>
    [ProtoMember(20)]
    public bool IsExistTray1 { get; set; }

    /// <summary>
    /// 叠盘时长
    /// </summary>
    [ProtoMember(21)]
    public int StackOnTime { get; set; }

}
